/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufpr.tads.Rent.controller;

import br.ufpr.tads.Rent.controller.EnumClass.*;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.SQLException;

/**
 *
 * @author G0006185
 */
public class Van extends Veiculo {

    public Van() throws IOException, FileNotFoundException, ClassNotFoundException, SQLException {
    }
    @Override
    public double getValorDiariaLocacao(int cat) {
        if(cat == EnumClass.categoria.POPULAR.getKey()) 
        return 200.00;
      else if(cat == EnumClass.categoria.INTERMEDIARIO.getKey())
        return 400.00;
      else if(cat == EnumClass.categoria.LUXO.getKey())
        return 600.00;
      return -1;
    }
    public modelovan getModelo(int id) throws IOException, FileNotFoundException, ClassNotFoundException, SQLException{       
        return modelovan.values()[veiculo.findVeiculoid(id).getModelo()];
    }
}
